package jym.tan.movielibrary.component.ui.dialog;

import jym.tan.movielibrary.component.base.BaseDialog;
import jym.tan.movielibrary.constant.ComponentConstant;
import jym.tan.movielibrary.factory.ComponentFactory;
import jym.tan.movielibrary.factory.ListenerFactory;
import jym.tan.movielibrary.logger.LibraryLogger;

public class MovieTitleConfirmDialog extends BaseDialog {

	private static final long serialVersionUID = 36L;
	
	public MovieTitleConfirmDialog() {
		super(ComponentFactory.getSingleMovieAddDialog(), ComponentConstant.Title.MOVIE_TITLE_CONFIRM_DIALOG);
		LibraryLogger.initMessage(getClass().getSimpleName());
	}
	
	@Override
	public void initialize() {
		setContentPane(ComponentFactory.getMovieTitleConfirmPanel());
		setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		addWindowListener(ListenerFactory.getMovieTitleConfirmDialogWindowListener());
		pack();
		setLocationRelativeTo(ComponentFactory.getSingleMovieAddDialog());
	}
}
